<!-- Allows an admin to accept or reject this submission -->
<h1>Editing Event "<%=h @events_submitter.event.name %>" by "<%=h @events_submitter.submitter.name %>"
<% if @events_submitter.submitter.name != @user_name %>
 (as "<%=@user_name%>")
<% end %>
</h1>

<%= error_messages_for :events_submitter %>

<% form_for(@events_submitter) do |f| %>
  <p>
    <b>Status:</b>
    <%=h @events_submitter.accepted ? "Accepted" : @events_submitter.rejected ? "Rejected" : "Awaiting Review" %>
  </p>
  <p>
    <table border="1">            <!-- ##TODO: CSS --> 
      <% event = @events_submitter.event %>
      <%= render :partial => "show_event", :object => event, :locals => { :first => true } %>
    </table>
  </p>

  <p>
    <% if @events_submitter.accepted || @events_submitter.rejected %>
      <p> <big>NOTE: changing already reviewed entry</big> </p>
    <% end %>
    <%= f.submit "Accept", :accepted => true, :rejected => false %>
    <%= f.submit "Reject", :rejected => true, :accepted => false %>
  </p>
<% end %>

<%= link_to 'Show', @events_submitter %> |
<%= link_to 'Back', events_submitters_path %>

<!-- vi:ts=2:et:sw=2:
-->
